package cn.tsvtc.shop.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * t_order
 * @author 
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Order implements Serializable {
    private Long id;

    private String account;

    private Integer paytype;

    private Integer carry;

    private BigDecimal rebate;

    private Date createdate;

    private String status;

    private String refundstatus;

    private BigDecimal amount;

    private BigDecimal fee;

    private BigDecimal ptotal;

    private Integer quantity;

    private String paystatus;

    private String updateamount;

    private String expresscode;

    private String expressname;

    private String otherrequirement;

    private String remark;

    private String expressno;

    private String expresscompanyname;

    private String lowstocks;

    private String confirmsendproductremark;

    private String closedcomment;

    private Integer score;

    private static final long serialVersionUID = 1L;

    /*** 订单状态:已成功下单*/
    public static final String order_status_init = "init";
    /*** 订单状态:已审核*/
    public static final String order_status_pass = "pass";
    /*** 订单状态:已发货*/
    public static final String order_status_send = "send";
    /*** 订单状态:已签收*/
    public static final String order_status_sign = "sign";
    /*** 订单状态:已取消*/
    public static final String order_status_cancel = "cancel";
    /*** 订单状态:已归档*/
    public static final String order_status_file = "file";

    public static final String order_status_init_chinese = "已下单";
    public static final String order_status_pass_chinese = "已审核";
    public static final String order_status_send_chinese = "已发货";
    public static final String order_status_sign_chinese = "已签收";
    public static final String order_status_cancel_chinese = "已取消";
    public static final String order_status_file_chinese = "已归档";

    /** 订单支付状态:未支付*/
    public static final String order_paystatus_n = "n";//
    /** 订单支付状态:部分支付*/
    public static final String order_paystatus_p = "p";//
    /** 订单支付状态:全部支付*/
    public static final String order_paystatus_y = "y";//

    /**
     * 订单是否缺货状态
     */
    public static final String order_lowStocks_y = "y";//订单中存在商品缺货
    public static final String order_lowStocks_n = "n";//不缺货

    /**
     * 订单评论状态是否关闭
     */
    public static String order_closedComment_y = "y";//已关闭
    public static String order_closedComment_n = "n";//未关闭
}